package com.ncu.xrpc.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: xiongwb
 * Date: 2021/9/8 20:54
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class XRpcResponse implements Serializable {
    /**
     * 响应ID
     */
    private String requestId;

    /**
     * 错误信息
     */
    private String error;

    /**
     * 返回的结果
     */
    private Object result;

    public XRpcResponse(String requestId){
        this.requestId = requestId;
    }
}
